import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import "./mockjs/index.js"
// 配合跨域引入的全局axios
import axios from "axios";

// 配置请求的根路径,老办法跨域
axios.defaults.baseURL = "/api"
Vue.prototype.$axios = axios;
//引入echarts
import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;
Vue.use(ElementUI);
Vue.config.productionTip = false

new Vue({
  router,
  store,
  echarts,
  render: h => h(App)
}).$mount('#app')